package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WorkPatentWinnersMapper;
import com.ruoyi.system.domain.WorkPatentWinners;
import com.ruoyi.system.service.IWorkPatentWinnersService;

/**
 * 著作完成人
Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
@Service
public class WorkPatentWinnersServiceImpl implements IWorkPatentWinnersService 
{
    @Autowired
    private WorkPatentWinnersMapper workPatentWinnersMapper;

    /**
     * 查询著作完成人

     * 
     * @param id 著作完成人
主键
     * @return 著作完成人

     */
    @Override
    public WorkPatentWinners selectWorkPatentWinnersById(Long id)
    {
        return workPatentWinnersMapper.selectWorkPatentWinnersById(id);
    }

    /**
     * 查询著作完成人
列表
     * 
     * @param workPatentWinners 著作完成人

     * @return 著作完成人

     */
    @Override
    public List<WorkPatentWinners> selectWorkPatentWinnersList(WorkPatentWinners workPatentWinners)
    {
        return workPatentWinnersMapper.selectWorkPatentWinnersList(workPatentWinners);
    }

    /**
     * 新增著作完成人

     * 
     * @param workPatentWinners 著作完成人

     * @return 结果
     */
    @Override
    public int insertWorkPatentWinners(WorkPatentWinners workPatentWinners)
    {
        return workPatentWinnersMapper.insertWorkPatentWinners(workPatentWinners);
    }

    /**
     * 修改著作完成人

     * 
     * @param workPatentWinners 著作完成人

     * @return 结果
     */
    @Override
    public int updateWorkPatentWinners(WorkPatentWinners workPatentWinners)
    {
        return workPatentWinnersMapper.updateWorkPatentWinners(workPatentWinners);
    }

    /**
     * 批量删除著作完成人

     * 
     * @param ids 需要删除的著作完成人
主键
     * @return 结果
     */
    @Override
    public int deleteWorkPatentWinnersByIds(Long[] ids)
    {
        return workPatentWinnersMapper.deleteWorkPatentWinnersByIds(ids);
    }

    /**
     * 删除著作完成人
信息
     * 
     * @param id 著作完成人
主键
     * @return 结果
     */
    @Override
    public int deleteWorkPatentWinnersById(Long id)
    {
        return workPatentWinnersMapper.deleteWorkPatentWinnersById(id);
    }
}
